草庐IT

java - apt-get 安装 oracle java 7 停止工作

全部标签

ruby - 没有 Rails 的 Sidekiq 不会加载工作类

我正在使用Sidekiq3.1.2没有Rails像这样:$sidekiq-vrsidekiq.rbsidekiq.rb看起来像这样:($LOAD_PATHlib/workers/lookup_worker.rb看起来像这样:require'sidekiq'classLookupWorkerincludeSidekiq::Workerdefperform(*args)puts"LookupWorker#performfiredwitharguments#{args.map(&:inspect).join(',')}"endend但是当我在irb并尝试>LookupWorker.perfo

ruby-on-rails - 安装/bundle gem unf_ext -v '0.0.6' 时出错

我正在尝试bundleintallunf_ext-v'0.0.6'但我一直收到此错误:Gem::Ext::BuildError:ERROR:Failedtobuildgemnativeextension.checkingformain()in-lstdc++...yescheckingforruby/encoding.h...yescreatingMakefilemake"DESTDIR="cleanmake"DESTDIR="compilingunf.ccInfileincludedfromunf.cc:1:Infileincludedfrom./unf/normalizer.hh:

ruby - 无法安装 ruby​​ gems - zlib 错误

我正在尝试安装一些RubyGems,以便在我收到Twitter消息时可以使用Ruby通知我。然而,在执行了gemupdate--system之后,我现在每次尝试执行geminstall时都会收到zlib错误。下面是我在尝试安装ruby​​gems时得到的控制台输出。(以及gem环境的输出)。C:\data\ruby>geminstalltwitterERROR:Whileexecutinggem...(Zlib::BufError)buffererrorC:\data\ruby>gemupdate--systemUpdatingRubyGemsERROR:Whileexecutingg

ruby - 安装 RDoc 文档时出错 : incompatible encoding regexp match

上周,在一些gem安装或gem更新操作中,我收到了与这些类似的错误:ERROR:Whilegeneratingdocumentationforsinatra-1.3.1...MESSAGE:errorgeneratingC:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/doc/sinatra-1.3.1/rdoc/README_de_rdoc.html:incompatibleencodingregexpmatch(UTF-8regexpwithIBM437string)(Encoding::CompatibilityError)类似的:E

ruby - Pow、RVM 和 ZSH 不能一起工作

我正在尝试让Octopress(http://octopress.org/)正常工作,但我遇到了一些问题。我正在使用POW(http://pow.cx/),它似乎没有为我加载正确的Ruby版本(使用RVM)。它始终使用RVM默认的ruby​​版本,而不是.rvmrc中指定的版本。我在RVM中的默认Ruby版本是:ruby-1.9.3-p125。在我的.rvmrc文件中我有这个:rvmuse1.9.2我在访问我的网站时在浏览器中收到此错误:LoadError:cannotloadsuchfile--bundler/setup~/.rvm/rubies/ruby-1.9.3-p125/li

ruby-on-rails - Rails 4 中关于匹配关键字在 Rails 3 中工作的路由问题

在rails3中,匹配关键字有效,但在rails4中,匹配关键字不适用于路由我如何在rails4中定义这些路由此代码段在rails3中运行match'admin',:to=>'access#menu'match'show/:id',:to=>'public#show'match':controller(/:action(/:id(.:format)))'我需要rails4的通用公式,就像在rails3中一样match':controller(/:action(/:id(.:format)))' 最佳答案 Rails4删除了通用匹配,

ruby - 安装假期 gem 时出错

我在尝试安装holidaysgem时收到以下错误:#geminstallholidaysFetching:holidays-1.0.4.gem(100%)ERROR:Errorinstallingholidays:holidaysrequiresholidays(>=0)我不是ruby专家,只是为RedmineBacklogs安装了一些deps插件。版本和环境:#gem-v1.8.10#ruby-vruby1.8.7(2010-06-23patchlevel299)[i386-linux]CentOSLinuxrelease6.0(Final)#uname-r2.6.32-71.29.

ruby - 无法在 ubuntu 14.04 lts 上安装 fileutils Rubygem

当尝试安装fileutilsgem时,我得到以下输出:Nopackage'MagickCore'foundPackageMagickCorewasnotfoundinthepkg-configsearchpath.Perhapsyoushouldaddthedirectorycontaining`MagickCore.pc'tothePKG_CONFIG_PATHenvironmentvariableNopackage'MagickCore'foundPackageMagickCorewasnotfoundinthepkg-configsearchpath.Perhapsyoushou

ruby - 安装 sqlite3-ruby 时出现问题!

我在crunchbanglinux上安装sqlite3-rubygem时遇到问题。在谷歌搜索过去几个小时并关注了几个遇到同样问题的人之后,我仍然没有让它工作。这是我在尝试“sudogeminstallsqlite3-ruby”后看到的构建native扩展。这可能需要一段时间...错误:安装sqlite3-ruby时出错:错误:无法构建gemnative扩展。/usr/bin/ruby1.8extconf.rb检查sqlite3.h...是的在-lsqlite3中检查sqlite3_libversion_number()...是检查rb_proc_arity()...否检查sqlite3

ruby-on-rails - 使用 get 和 delete 运行 Rspec 测试时获取错误数量的参数(2 个为 0)

这应该是一个简单的问题,就是找不到导致测试失败的原因。运行rspec时,我不断收到以下错误。但是在评论“发送”方法之后,一切正常。1)MessagesGET/messagesworks!(nowwritesomerealspecs)Failure/Error:gettarget_app_messages_path(@message.target_app.id)ArgumentError:wrongnumberofarguments(2for0)#./app/controllers/messages_controller.rb:37:in`send'路线.rbresources:targ